﻿namespace AnyOffice.Model
{
    using System;

    public class OfficeTranshistoryData
    {
        protected DateTime _addDate = DateTime.Now;
        protected object _borrower;
        protected string _operator = string.Empty;
        protected object _price;
        protected bool _processFlag = true;
        protected int _productId;
        protected int _quantity;
        protected object _remark;
        protected int _transFlag;
        protected int _transId = -1;

        public DateTime AddDate
        {
            get
            {
                return this._addDate;
            }
            set
            {
                this._addDate = value;
            }
        }

        public string Borrower
        {
            get
            {
                return (string) this._borrower;
            }
            set
            {
                this._borrower = value;
            }
        }

        public bool BorrowerIsNull
        {
            get
            {
                return (this._borrower == null);
            }
            set
            {
                if (value)
                {
                    this._borrower = null;
                }
            }
        }

        public string Operator
        {
            get
            {
                return this._operator;
            }
            set
            {
                this._operator = value;
            }
        }

        public decimal Price
        {
            get
            {
                return (decimal) this._price;
            }
            set
            {
                this._price = value;
            }
        }

        public bool PriceIsNull
        {
            get
            {
                return (this._price == null);
            }
            set
            {
                if (value)
                {
                    this._price = null;
                }
            }
        }

        public bool ProcessFlag
        {
            get
            {
                return this._processFlag;
            }
            set
            {
                this._processFlag = value;
            }
        }

        public int ProductId
        {
            get
            {
                return this._productId;
            }
            set
            {
                this._productId = value;
            }
        }

        public int Quantity
        {
            get
            {
                return this._quantity;
            }
            set
            {
                this._quantity = value;
            }
        }

        public string Remark
        {
            get
            {
                return (string) this._remark;
            }
            set
            {
                this._remark = value;
            }
        }

        public bool RemarkIsNull
        {
            get
            {
                return (this._remark == null);
            }
            set
            {
                if (value)
                {
                    this._remark = null;
                }
            }
        }

        public int TransFlag
        {
            get
            {
                return this._transFlag;
            }
            set
            {
                this._transFlag = value;
            }
        }

        public int TransId
        {
            get
            {
                return this._transId;
            }
            set
            {
                this._transId = value;
            }
        }
    }
}

